package com.ruoyi.lvlian.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ToString
@ApiModel(value = "产品对象", description = "产品对象")
public class ProductDto {
    @ApiModelProperty(value = "商品编码")
    private String code;

    @ApiModelProperty(value = "购买方入库货品名称")
    private String name;

    @ApiModelProperty(value = "状态: 0-下架 1-上架 2-待审核")
    private String status;

    /**
     * 一级分类id
     */
    @ApiModelProperty(value = "一级分类id")
    private Long categoryLevelId1;

    /**
     * 二级分类id
     */
    @ApiModelProperty(value = "二级分类id")
    private Long categoryLevelId2;

    /**
     * 三级分类id
     */
    @ApiModelProperty(value = "三级分类id")
    private Long categoryLevelId3;


    /**
     * 一级分类名字
     */
    @ApiModelProperty(value = "一级分类名字")
    private String categoryLevelName1;

    /**
     * 二级分类名字
     */
    @ApiModelProperty(value = "二级分类名字")
    private String categoryLevelName2;

    /**
     * 三级分类名字
     */
    @ApiModelProperty(value = "三级分类名字")
    private String categoryLevelName3;


    /**
     * 分类code
     */
    @ApiModelProperty(value = "分类code")
    private String categoryCode;

    @ApiModelProperty(value = "分类code")
    private String categoryLevel;

    /**
     * 分类ids
     */
    @ApiModelProperty(value = "分类ids")
    private String[] categoryIds;


    @NotNull(message = "orgCodes不能为空") // 这是实际的验证注解
    private List<String> orgCodes;
}
